﻿// // ******************************************************************
// //       /\ /|       @file       SystemLogsService.cs
// //       \ V/        @brief      await29
// //       | "")       @author     Await, 285283010@qq.com
// //       /  |
// //      /  \\        @Modified   2025-02-07 19:02
// //    *(__\_\        @Copyright  Copyright (c) , 2025-02-06 20:02 Await
// // ******************************************************************

using AutomaticSubtitles.Contracts.Dto;
using AutomaticSubtitles.Contracts.Vo;
using AutomaticSubtitles.Service.Application.Cahce.Queries;
using AutomaticSubtitles.Service.Application.System.Queries;

namespace AutomaticSubtitles.Service.Services;

public class SystemLogsService : BaseService<SystemLogsService>
{
    [Tags("系统")]
    [EndpointSummary("获取系统日志")]
    [EndpointDescription("获取系统日志")]
    [HttpPost]
    [Authorize]
    public async Task<ResponseModel<SystemLogDto>> List(SystemLogVo data)
    {
        var translateOptions = new GetSystemListQuery(data);
        await PublishAsync(translateOptions);
        return translateOptions.Result.CreateResult()!;
    }
}